Class ExplicitContentFrame.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ExplicitContentFrame.Builder>
com.google.cloud.videointelligence.v1.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.GeneratedMessage.Builder<ExplicitContentFrame.Builder> implements ExplicitContentFrameOrBuilder
 Video frame level annotation results for explicit content.
 
Protobuf type google.cloud.videointelligence.v1.ExplicitContentFrame
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Likelihood of the pornography content..
    Time-offset, relative to the beginning of the video, corresponding to the video frame for this location.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    Likelihood of the pornography content..
    int
    Likelihood of the pornography content..
    com.google.protobuf.Duration
    Time-offset, relative to the beginning of the video, corresponding to the video frame for this location.
    com.google.protobuf.Duration.Builder
    Time-offset, relative to the beginning of the video, corresponding to the video frame for this location.
    com.google.protobuf.DurationOrBuilder
    Time-offset, relative to the beginning of the video, corresponding to the video frame for this location.
    boolean
    Time-offset, relative to the beginning of the video, corresponding to the video frame for this location.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    mergeTimeOffset(com.google.protobuf.Duration value)
    Time-offset, relative to the beginning of the video, corresponding to the video frame for this location.
    Likelihood of the pornography content..
    Likelihood of the pornography content..
    setTimeOffset(com.google.protobuf.Duration value)
    Time-offset, relative to the beginning of the video, corresponding to the video frame for this location.
    setTimeOffset(com.google.protobuf.Duration.Builder builderForValue)
    Time-offset, relative to the beginning of the video, corresponding to the video frame for this location.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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.Builder<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.GeneratedMessage.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.GeneratedMessage.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
    • mergeFrom

      public ExplicitContentFrame.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ExplicitContentFrame.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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.v1.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.v1.Likelihood pornography_likelihood = 2;
      Parameters:
      value - The enum numeric value on the wire for pornographyLikelihood to set.
      Returns:
      This builder for chaining.
    • getPornographyLikelihood

      public Likelihood getPornographyLikelihood()
       Likelihood of the pornography content..
       
      .google.cloud.videointelligence.v1.Likelihood pornography_likelihood = 2;
      Specified by:
      getPornographyLikelihood in interface ExplicitContentFrameOrBuilder
      Returns:
      The pornographyLikelihood.
    • setPornographyLikelihood

      public ExplicitContentFrame.Builder setPornographyLikelihood(Likelihood value)
       Likelihood of the pornography content..
       
      .google.cloud.videointelligence.v1.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.v1.Likelihood pornography_likelihood = 2;
      Returns:
      This builder for chaining.