Class FetchAndParseReply.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<FetchAndParseReply.Builder>
org.apache.tika.FetchAndParseReply.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, FetchAndParseReplyOrBuilder
Enclosing class:
FetchAndParseReply

public static final class FetchAndParseReply.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<FetchAndParseReply.Builder> implements FetchAndParseReplyOrBuilder
Protobuf type tika.FetchAndParseReply
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<FetchAndParseReply.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<FetchAndParseReply.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<FetchAndParseReply.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<FetchAndParseReply.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<FetchAndParseReply.Builder>
    • getDefaultInstanceForType

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

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

      public FetchAndParseReply buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<FetchAndParseReply.Builder>
    • setField

      public FetchAndParseReply.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<FetchAndParseReply.Builder>
    • clearField

      public FetchAndParseReply.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<FetchAndParseReply.Builder>
    • clearOneof

      public FetchAndParseReply.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<FetchAndParseReply.Builder>
    • setRepeatedField

      public FetchAndParseReply.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<FetchAndParseReply.Builder>
    • addRepeatedField

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

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

    • isInitialized

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

      public FetchAndParseReply.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<FetchAndParseReply.Builder>
      Throws:
      IOException
    • getFetchKey

      public String getFetchKey()
       Echoes the fetch_key that was sent in the request.
       
      string fetch_key = 1;
      Specified by:
      getFetchKey in interface FetchAndParseReplyOrBuilder
      Returns:
      The fetchKey.
    • getFetchKeyBytes

      public com.google.protobuf.ByteString getFetchKeyBytes()
       Echoes the fetch_key that was sent in the request.
       
      string fetch_key = 1;
      Specified by:
      getFetchKeyBytes in interface FetchAndParseReplyOrBuilder
      Returns:
      The bytes for fetchKey.
    • setFetchKey

      public FetchAndParseReply.Builder setFetchKey(String value)
       Echoes the fetch_key that was sent in the request.
       
      string fetch_key = 1;
      Parameters:
      value - The fetchKey to set.
      Returns:
      This builder for chaining.
    • clearFetchKey

      public FetchAndParseReply.Builder clearFetchKey()
       Echoes the fetch_key that was sent in the request.
       
      string fetch_key = 1;
      Returns:
      This builder for chaining.
    • setFetchKeyBytes

      public FetchAndParseReply.Builder setFetchKeyBytes(com.google.protobuf.ByteString value)
       Echoes the fetch_key that was sent in the request.
       
      string fetch_key = 1;
      Parameters:
      value - The bytes for fetchKey to set.
      Returns:
      This builder for chaining.
    • getFieldsCount

      public int getFieldsCount()
      Description copied from interface: FetchAndParseReplyOrBuilder
       Metadata fields from the parse output.
       
      map<string, string> fields = 2;
      Specified by:
      getFieldsCount in interface FetchAndParseReplyOrBuilder
    • containsFields

      public boolean containsFields(String key)
       Metadata fields from the parse output.
       
      map<string, string> fields = 2;
      Specified by:
      containsFields in interface FetchAndParseReplyOrBuilder
    • getFields

      @Deprecated public Map<String,String> getFields()
      Deprecated.
      Use getFieldsMap() instead.
      Specified by:
      getFields in interface FetchAndParseReplyOrBuilder
    • getFieldsMap

      public Map<String,String> getFieldsMap()
       Metadata fields from the parse output.
       
      map<string, string> fields = 2;
      Specified by:
      getFieldsMap in interface FetchAndParseReplyOrBuilder
    • getFieldsOrDefault

      public String getFieldsOrDefault(String key, String defaultValue)
       Metadata fields from the parse output.
       
      map<string, string> fields = 2;
      Specified by:
      getFieldsOrDefault in interface FetchAndParseReplyOrBuilder
    • getFieldsOrThrow

      public String getFieldsOrThrow(String key)
       Metadata fields from the parse output.
       
      map<string, string> fields = 2;
      Specified by:
      getFieldsOrThrow in interface FetchAndParseReplyOrBuilder
    • clearFields

      public FetchAndParseReply.Builder clearFields()
    • removeFields

      public FetchAndParseReply.Builder removeFields(String key)
       Metadata fields from the parse output.
       
      map<string, string> fields = 2;
    • getMutableFields

      @Deprecated public Map<String,String> getMutableFields()
      Deprecated.
      Use alternate mutation accessors instead.
    • putFields

      public FetchAndParseReply.Builder putFields(String key, String value)
       Metadata fields from the parse output.
       
      map<string, string> fields = 2;
    • putAllFields

      public FetchAndParseReply.Builder putAllFields(Map<String,String> values)
       Metadata fields from the parse output.
       
      map<string, string> fields = 2;
    • getStatus

      public String getStatus()
       The status from the message. See javadoc for org.apache.tika.pipes.PipesResult.STATUS for the list of status.
       
      string status = 3;
      Specified by:
      getStatus in interface FetchAndParseReplyOrBuilder
      Returns:
      The status.
    • getStatusBytes

      public com.google.protobuf.ByteString getStatusBytes()
       The status from the message. See javadoc for org.apache.tika.pipes.PipesResult.STATUS for the list of status.
       
      string status = 3;
      Specified by:
      getStatusBytes in interface FetchAndParseReplyOrBuilder
      Returns:
      The bytes for status.
    • setStatus

      public FetchAndParseReply.Builder setStatus(String value)
       The status from the message. See javadoc for org.apache.tika.pipes.PipesResult.STATUS for the list of status.
       
      string status = 3;
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

      public FetchAndParseReply.Builder clearStatus()
       The status from the message. See javadoc for org.apache.tika.pipes.PipesResult.STATUS for the list of status.
       
      string status = 3;
      Returns:
      This builder for chaining.
    • setStatusBytes

      public FetchAndParseReply.Builder setStatusBytes(com.google.protobuf.ByteString value)
       The status from the message. See javadoc for org.apache.tika.pipes.PipesResult.STATUS for the list of status.
       
      string status = 3;
      Parameters:
      value - The bytes for status to set.
      Returns:
      This builder for chaining.
    • getErrorMessage

      public String getErrorMessage()
       If there was an error, this will contain the error message.
       
      string error_message = 4;
      Specified by:
      getErrorMessage in interface FetchAndParseReplyOrBuilder
      Returns:
      The errorMessage.
    • getErrorMessageBytes

      public com.google.protobuf.ByteString getErrorMessageBytes()
       If there was an error, this will contain the error message.
       
      string error_message = 4;
      Specified by:
      getErrorMessageBytes in interface FetchAndParseReplyOrBuilder
      Returns:
      The bytes for errorMessage.
    • setErrorMessage

      public FetchAndParseReply.Builder setErrorMessage(String value)
       If there was an error, this will contain the error message.
       
      string error_message = 4;
      Parameters:
      value - The errorMessage to set.
      Returns:
      This builder for chaining.
    • clearErrorMessage

      public FetchAndParseReply.Builder clearErrorMessage()
       If there was an error, this will contain the error message.
       
      string error_message = 4;
      Returns:
      This builder for chaining.
    • setErrorMessageBytes

      public FetchAndParseReply.Builder setErrorMessageBytes(com.google.protobuf.ByteString value)
       If there was an error, this will contain the error message.
       
      string error_message = 4;
      Parameters:
      value - The bytes for errorMessage to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final FetchAndParseReply.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<FetchAndParseReply.Builder>
    • mergeUnknownFields

      public final FetchAndParseReply.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<FetchAndParseReply.Builder>