Class ExplicitContentFrame.Builder

  • All Implemented Interfaces:
    ExplicitContentFrameOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    ExplicitContentFrame

    public static final class ExplicitContentFrame.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ExplicitContentFrame.Builder>
    implements ExplicitContentFrameOrBuilder
     Video frame level annotation results for explicit content.
     
    Protobuf type google.cloud.videointelligence.v1p1beta1.ExplicitContentFrame
    • Method Detail

      • 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.Builder<ExplicitContentFrame.Builder>
      • clear

        public ExplicitContentFrame.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<ExplicitContentFrame.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ExplicitContentFrame.Builder>
      • getDefaultInstanceForType

        public ExplicitContentFrame getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public ExplicitContentFrame build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ExplicitContentFrame buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public ExplicitContentFrame.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ExplicitContentFrame.Builder>
      • setField

        public ExplicitContentFrame.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ExplicitContentFrame.Builder>
      • clearField

        public ExplicitContentFrame.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ExplicitContentFrame.Builder>
      • clearOneof

        public ExplicitContentFrame.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ExplicitContentFrame.Builder>
      • setRepeatedField

        public ExplicitContentFrame.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             int index,
                                                             Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExplicitContentFrame.Builder>
      • addRepeatedField

        public ExplicitContentFrame.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ExplicitContentFrame.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ExplicitContentFrame.Builder>
      • mergeFrom

        public ExplicitContentFrame.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExplicitContentFrame.Builder>
        Throws:
        IOException
      • hasTimeOffset

        public boolean hasTimeOffset()
         Time-offset, relative to the beginning of the video, corresponding to the
         video frame for this location.
         
        .google.protobuf.Duration time_offset = 1;
        Specified by:
        hasTimeOffset in interface ExplicitContentFrameOrBuilder
        Returns:
        Whether the timeOffset field is set.
      • getTimeOffset

        public com.google.protobuf.Duration getTimeOffset()
         Time-offset, relative to the beginning of the video, corresponding to the
         video frame for this location.
         
        .google.protobuf.Duration time_offset = 1;
        Specified by:
        getTimeOffset in interface ExplicitContentFrameOrBuilder
        Returns:
        The timeOffset.
      • setTimeOffset

        public ExplicitContentFrame.Builder setTimeOffset​(com.google.protobuf.Duration value)
         Time-offset, relative to the beginning of the video, corresponding to the
         video frame for this location.
         
        .google.protobuf.Duration time_offset = 1;
      • setTimeOffset

        public ExplicitContentFrame.Builder setTimeOffset​(com.google.protobuf.Duration.Builder builderForValue)
         Time-offset, relative to the beginning of the video, corresponding to the
         video frame for this location.
         
        .google.protobuf.Duration time_offset = 1;
      • mergeTimeOffset

        public ExplicitContentFrame.Builder mergeTimeOffset​(com.google.protobuf.Duration value)
         Time-offset, relative to the beginning of the video, corresponding to the
         video frame for this location.
         
        .google.protobuf.Duration time_offset = 1;
      • clearTimeOffset

        public ExplicitContentFrame.Builder clearTimeOffset()
         Time-offset, relative to the beginning of the video, corresponding to the
         video frame for this location.
         
        .google.protobuf.Duration time_offset = 1;
      • getTimeOffsetBuilder

        public com.google.protobuf.Duration.Builder getTimeOffsetBuilder()
         Time-offset, relative to the beginning of the video, corresponding to the
         video frame for this location.
         
        .google.protobuf.Duration time_offset = 1;
      • getTimeOffsetOrBuilder

        public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder()
         Time-offset, relative to the beginning of the video, corresponding to the
         video frame for this location.
         
        .google.protobuf.Duration time_offset = 1;
        Specified by:
        getTimeOffsetOrBuilder in interface ExplicitContentFrameOrBuilder
      • getPornographyLikelihoodValue

        public int getPornographyLikelihoodValue()
         Likelihood of the pornography content..
         
        .google.cloud.videointelligence.v1p1beta1.Likelihood pornography_likelihood = 2;
        Specified by:
        getPornographyLikelihoodValue in interface ExplicitContentFrameOrBuilder
        Returns:
        The enum numeric value on the wire for pornographyLikelihood.
      • setPornographyLikelihoodValue

        public ExplicitContentFrame.Builder setPornographyLikelihoodValue​(int value)
         Likelihood of the pornography content..
         
        .google.cloud.videointelligence.v1p1beta1.Likelihood pornography_likelihood = 2;
        Parameters:
        value - The enum numeric value on the wire for pornographyLikelihood to set.
        Returns:
        This builder for chaining.
      • setPornographyLikelihood

        public ExplicitContentFrame.Builder setPornographyLikelihood​(Likelihood value)
         Likelihood of the pornography content..
         
        .google.cloud.videointelligence.v1p1beta1.Likelihood pornography_likelihood = 2;
        Parameters:
        value - The pornographyLikelihood to set.
        Returns:
        This builder for chaining.
      • clearPornographyLikelihood

        public ExplicitContentFrame.Builder clearPornographyLikelihood()
         Likelihood of the pornography content..
         
        .google.cloud.videointelligence.v1p1beta1.Likelihood pornography_likelihood = 2;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ExplicitContentFrame.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExplicitContentFrame.Builder>
      • mergeUnknownFields

        public final ExplicitContentFrame.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ExplicitContentFrame.Builder>