Class TikaContent.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<TikaContent.Builder>
com.google.protobuf.GeneratedMessage.Builder<TikaContent.Builder>
ai.pipestream.parsed.data.tika.v1.TikaContent.Builder
All Implemented Interfaces:
TikaContentOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
TikaContent

public static final class TikaContent.Builder extends com.google.protobuf.GeneratedMessage.Builder<TikaContent.Builder> implements TikaContentOrBuilder
 Core content - the actual text extracted
 
Protobuf type ai.pipestream.parsed.data.tika.v1.TikaContent
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    string body = 1 [json_name = "body"];
    int64 content_length = 5 [json_name = "contentLength"];
    optional string description = 3 [json_name = "description"];
    optional string keywords = 4 [json_name = "keywords"];
    optional string title = 2 [json_name = "title"];
    string body = 1 [json_name = "body"];
    com.google.protobuf.ByteString
    string body = 1 [json_name = "body"];
    long
    int64 content_length = 5 [json_name = "contentLength"];
     
    optional string description = 3 [json_name = "description"];
    com.google.protobuf.ByteString
    optional string description = 3 [json_name = "description"];
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    optional string keywords = 4 [json_name = "keywords"];
    com.google.protobuf.ByteString
    optional string keywords = 4 [json_name = "keywords"];
    optional string title = 2 [json_name = "title"];
    com.google.protobuf.ByteString
    optional string title = 2 [json_name = "title"];
    boolean
    optional string description = 3 [json_name = "description"];
    boolean
    optional string keywords = 4 [json_name = "keywords"];
    boolean
    optional string title = 2 [json_name = "title"];
    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)
     
    setBody(String value)
    string body = 1 [json_name = "body"];
    setBodyBytes(com.google.protobuf.ByteString value)
    string body = 1 [json_name = "body"];
    setContentLength(long value)
    int64 content_length = 5 [json_name = "contentLength"];
    optional string description = 3 [json_name = "description"];
    setDescriptionBytes(com.google.protobuf.ByteString value)
    optional string description = 3 [json_name = "description"];
    optional string keywords = 4 [json_name = "keywords"];
    setKeywordsBytes(com.google.protobuf.ByteString value)
    optional string keywords = 4 [json_name = "keywords"];
    optional string title = 2 [json_name = "title"];
    setTitleBytes(com.google.protobuf.ByteString value)
    optional string title = 2 [json_name = "title"];

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

      public TikaContent.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<TikaContent.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<TikaContent.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public TikaContent.Builder mergeFrom(TikaContent other)
    • isInitialized

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

      public TikaContent.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<TikaContent.Builder>
      Throws:
      IOException
    • getBody

      public String getBody()
      string body = 1 [json_name = "body"];
      Specified by:
      getBody in interface TikaContentOrBuilder
      Returns:
      The body.
    • getBodyBytes

      public com.google.protobuf.ByteString getBodyBytes()
      string body = 1 [json_name = "body"];
      Specified by:
      getBodyBytes in interface TikaContentOrBuilder
      Returns:
      The bytes for body.
    • setBody

      public TikaContent.Builder setBody(String value)
      string body = 1 [json_name = "body"];
      Parameters:
      value - The body to set.
      Returns:
      This builder for chaining.
    • clearBody

      public TikaContent.Builder clearBody()
      string body = 1 [json_name = "body"];
      Returns:
      This builder for chaining.
    • setBodyBytes

      public TikaContent.Builder setBodyBytes(com.google.protobuf.ByteString value)
      string body = 1 [json_name = "body"];
      Parameters:
      value - The bytes for body to set.
      Returns:
      This builder for chaining.
    • hasTitle

      public boolean hasTitle()
      optional string title = 2 [json_name = "title"];
      Specified by:
      hasTitle in interface TikaContentOrBuilder
      Returns:
      Whether the title field is set.
    • getTitle

      public String getTitle()
      optional string title = 2 [json_name = "title"];
      Specified by:
      getTitle in interface TikaContentOrBuilder
      Returns:
      The title.
    • getTitleBytes

      public com.google.protobuf.ByteString getTitleBytes()
      optional string title = 2 [json_name = "title"];
      Specified by:
      getTitleBytes in interface TikaContentOrBuilder
      Returns:
      The bytes for title.
    • setTitle

      public TikaContent.Builder setTitle(String value)
      optional string title = 2 [json_name = "title"];
      Parameters:
      value - The title to set.
      Returns:
      This builder for chaining.
    • clearTitle

      public TikaContent.Builder clearTitle()
      optional string title = 2 [json_name = "title"];
      Returns:
      This builder for chaining.
    • setTitleBytes

      public TikaContent.Builder setTitleBytes(com.google.protobuf.ByteString value)
      optional string title = 2 [json_name = "title"];
      Parameters:
      value - The bytes for title to set.
      Returns:
      This builder for chaining.
    • hasDescription

      public boolean hasDescription()
      optional string description = 3 [json_name = "description"];
      Specified by:
      hasDescription in interface TikaContentOrBuilder
      Returns:
      Whether the description field is set.
    • getDescription

      public String getDescription()
      optional string description = 3 [json_name = "description"];
      Specified by:
      getDescription in interface TikaContentOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
      optional string description = 3 [json_name = "description"];
      Specified by:
      getDescriptionBytes in interface TikaContentOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public TikaContent.Builder setDescription(String value)
      optional string description = 3 [json_name = "description"];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public TikaContent.Builder clearDescription()
      optional string description = 3 [json_name = "description"];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public TikaContent.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
      optional string description = 3 [json_name = "description"];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • hasKeywords

      public boolean hasKeywords()
      optional string keywords = 4 [json_name = "keywords"];
      Specified by:
      hasKeywords in interface TikaContentOrBuilder
      Returns:
      Whether the keywords field is set.
    • getKeywords

      public String getKeywords()
      optional string keywords = 4 [json_name = "keywords"];
      Specified by:
      getKeywords in interface TikaContentOrBuilder
      Returns:
      The keywords.
    • getKeywordsBytes

      public com.google.protobuf.ByteString getKeywordsBytes()
      optional string keywords = 4 [json_name = "keywords"];
      Specified by:
      getKeywordsBytes in interface TikaContentOrBuilder
      Returns:
      The bytes for keywords.
    • setKeywords

      public TikaContent.Builder setKeywords(String value)
      optional string keywords = 4 [json_name = "keywords"];
      Parameters:
      value - The keywords to set.
      Returns:
      This builder for chaining.
    • clearKeywords

      public TikaContent.Builder clearKeywords()
      optional string keywords = 4 [json_name = "keywords"];
      Returns:
      This builder for chaining.
    • setKeywordsBytes

      public TikaContent.Builder setKeywordsBytes(com.google.protobuf.ByteString value)
      optional string keywords = 4 [json_name = "keywords"];
      Parameters:
      value - The bytes for keywords to set.
      Returns:
      This builder for chaining.
    • getContentLength

      public long getContentLength()
      int64 content_length = 5 [json_name = "contentLength"];
      Specified by:
      getContentLength in interface TikaContentOrBuilder
      Returns:
      The contentLength.
    • setContentLength

      public TikaContent.Builder setContentLength(long value)
      int64 content_length = 5 [json_name = "contentLength"];
      Parameters:
      value - The contentLength to set.
      Returns:
      This builder for chaining.
    • clearContentLength

      public TikaContent.Builder clearContentLength()
      int64 content_length = 5 [json_name = "contentLength"];
      Returns:
      This builder for chaining.