Class ExplicitContentAnnotation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ExplicitContentAnnotation.Builder>
com.google.cloud.videointelligence.v1.ExplicitContentAnnotation.Builder
All Implemented Interfaces:
ExplicitContentAnnotationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ExplicitContentAnnotation

public static final class ExplicitContentAnnotation.Builder extends com.google.protobuf.GeneratedMessage.Builder<ExplicitContentAnnotation.Builder> implements ExplicitContentAnnotationOrBuilder
 Explicit content annotation (based on per-frame visual signals only).
 If no explicit content has been detected in a frame, no annotations are
 present for that frame.
 
Protobuf type google.cloud.videointelligence.v1.ExplicitContentAnnotation
  • 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<ExplicitContentAnnotation.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<ExplicitContentAnnotation.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<ExplicitContentAnnotation.Builder>
    • getDefaultInstanceForType

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

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

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

      public ExplicitContentAnnotation.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<ExplicitContentAnnotation.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<ExplicitContentAnnotation.Builder>
    • mergeFrom

      public ExplicitContentAnnotation.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<ExplicitContentAnnotation.Builder>
      Throws:
      IOException
    • getFramesList

      public List<ExplicitContentFrame> getFramesList()
       All video frames where explicit content was detected.
       
      repeated .google.cloud.videointelligence.v1.ExplicitContentFrame frames = 1;
      Specified by:
      getFramesList in interface ExplicitContentAnnotationOrBuilder
    • getFramesCount

      public int getFramesCount()
       All video frames where explicit content was detected.
       
      repeated .google.cloud.videointelligence.v1.ExplicitContentFrame frames = 1;
      Specified by:
      getFramesCount in interface ExplicitContentAnnotationOrBuilder
    • getFrames

      public ExplicitContentFrame getFrames(int index)
       All video frames where explicit content was detected.
       
      repeated .google.cloud.videointelligence.v1.ExplicitContentFrame frames = 1;
      Specified by:
      getFrames in interface ExplicitContentAnnotationOrBuilder
    • setFrames

      public ExplicitContentAnnotation.Builder setFrames(int index, ExplicitContentFrame value)
       All video frames where explicit content was detected.
       
      repeated .google.cloud.videointelligence.v1.ExplicitContentFrame frames = 1;
    • setFrames

      public ExplicitContentAnnotation.Builder setFrames(int index, ExplicitContentFrame.Builder builderForValue)
       All video frames where explicit content was detected.
       
      repeated .google.cloud.videointelligence.v1.ExplicitContentFrame frames = 1;
    • addFrames

       All video frames where explicit content was detected.
       
      repeated .google.cloud.videointelligence.v1.ExplicitContentFrame frames = 1;
    • addFrames

      public ExplicitContentAnnotation.Builder addFrames(int index, ExplicitContentFrame value)
       All video frames where explicit content was detected.
       
      repeated .google.cloud.videointelligence.v1.ExplicitContentFrame frames = 1;
    • addFrames

       All video frames where explicit content was detected.
       
      repeated .google.cloud.videointelligence.v1.ExplicitContentFrame frames = 1;
    • addFrames

      public ExplicitContentAnnotation.Builder addFrames(int index, ExplicitContentFrame.Builder builderForValue)
       All video frames where explicit content was detected.
       
      repeated .google.cloud.videointelligence.v1.ExplicitContentFrame frames = 1;
    • addAllFrames

      public ExplicitContentAnnotation.Builder addAllFrames(Iterable<? extends ExplicitContentFrame> values)
       All video frames where explicit content was detected.
       
      repeated .google.cloud.videointelligence.v1.ExplicitContentFrame frames = 1;
    • clearFrames

      public ExplicitContentAnnotation.Builder clearFrames()
       All video frames where explicit content was detected.
       
      repeated .google.cloud.videointelligence.v1.ExplicitContentFrame frames = 1;
    • removeFrames

      public ExplicitContentAnnotation.Builder removeFrames(int index)
       All video frames where explicit content was detected.
       
      repeated .google.cloud.videointelligence.v1.ExplicitContentFrame frames = 1;
    • getFramesBuilder

      public ExplicitContentFrame.Builder getFramesBuilder(int index)
       All video frames where explicit content was detected.
       
      repeated .google.cloud.videointelligence.v1.ExplicitContentFrame frames = 1;
    • getFramesOrBuilder

      public ExplicitContentFrameOrBuilder getFramesOrBuilder(int index)
       All video frames where explicit content was detected.
       
      repeated .google.cloud.videointelligence.v1.ExplicitContentFrame frames = 1;
      Specified by:
      getFramesOrBuilder in interface ExplicitContentAnnotationOrBuilder
    • getFramesOrBuilderList

      public List<? extends ExplicitContentFrameOrBuilder> getFramesOrBuilderList()
       All video frames where explicit content was detected.
       
      repeated .google.cloud.videointelligence.v1.ExplicitContentFrame frames = 1;
      Specified by:
      getFramesOrBuilderList in interface ExplicitContentAnnotationOrBuilder
    • addFramesBuilder

      public ExplicitContentFrame.Builder addFramesBuilder()
       All video frames where explicit content was detected.
       
      repeated .google.cloud.videointelligence.v1.ExplicitContentFrame frames = 1;
    • addFramesBuilder

      public ExplicitContentFrame.Builder addFramesBuilder(int index)
       All video frames where explicit content was detected.
       
      repeated .google.cloud.videointelligence.v1.ExplicitContentFrame frames = 1;
    • getFramesBuilderList

      public List<ExplicitContentFrame.Builder> getFramesBuilderList()
       All video frames where explicit content was detected.
       
      repeated .google.cloud.videointelligence.v1.ExplicitContentFrame frames = 1;
    • getVersion

      public String getVersion()
       Feature version.
       
      string version = 2;
      Specified by:
      getVersion in interface ExplicitContentAnnotationOrBuilder
      Returns:
      The version.
    • getVersionBytes

      public com.google.protobuf.ByteString getVersionBytes()
       Feature version.
       
      string version = 2;
      Specified by:
      getVersionBytes in interface ExplicitContentAnnotationOrBuilder
      Returns:
      The bytes for version.
    • setVersion

      public ExplicitContentAnnotation.Builder setVersion(String value)
       Feature version.
       
      string version = 2;
      Parameters:
      value - The version to set.
      Returns:
      This builder for chaining.
    • clearVersion

      public ExplicitContentAnnotation.Builder clearVersion()
       Feature version.
       
      string version = 2;
      Returns:
      This builder for chaining.
    • setVersionBytes

      public ExplicitContentAnnotation.Builder setVersionBytes(com.google.protobuf.ByteString value)
       Feature version.
       
      string version = 2;
      Parameters:
      value - The bytes for version to set.
      Returns:
      This builder for chaining.