Class FetchAndParseRequest.Builder

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

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

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

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

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

      public FetchAndParseRequest 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<FetchAndParseRequest.Builder>
    • setField

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

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

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

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

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

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

      public FetchAndParseRequest.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<FetchAndParseRequest.Builder>
      Throws:
      IOException
    • getFetcherId

      public String getFetcherId()
       The ID of the fetcher in the fetcher store (previously saved by SaveFetcher) to use for the fetch.
       
      string fetcher_id = 1;
      Specified by:
      getFetcherId in interface FetchAndParseRequestOrBuilder
      Returns:
      The fetcherId.
    • getFetcherIdBytes

      public com.google.protobuf.ByteString getFetcherIdBytes()
       The ID of the fetcher in the fetcher store (previously saved by SaveFetcher) to use for the fetch.
       
      string fetcher_id = 1;
      Specified by:
      getFetcherIdBytes in interface FetchAndParseRequestOrBuilder
      Returns:
      The bytes for fetcherId.
    • setFetcherId

      public FetchAndParseRequest.Builder setFetcherId(String value)
       The ID of the fetcher in the fetcher store (previously saved by SaveFetcher) to use for the fetch.
       
      string fetcher_id = 1;
      Parameters:
      value - The fetcherId to set.
      Returns:
      This builder for chaining.
    • clearFetcherId

      public FetchAndParseRequest.Builder clearFetcherId()
       The ID of the fetcher in the fetcher store (previously saved by SaveFetcher) to use for the fetch.
       
      string fetcher_id = 1;
      Returns:
      This builder for chaining.
    • setFetcherIdBytes

      public FetchAndParseRequest.Builder setFetcherIdBytes(com.google.protobuf.ByteString value)
       The ID of the fetcher in the fetcher store (previously saved by SaveFetcher) to use for the fetch.
       
      string fetcher_id = 1;
      Parameters:
      value - The bytes for fetcherId to set.
      Returns:
      This builder for chaining.
    • getFetchKey

      public String getFetchKey()
       The "Fetch Key" of the item that will be fetched.
       
      string fetch_key = 2;
      Specified by:
      getFetchKey in interface FetchAndParseRequestOrBuilder
      Returns:
      The fetchKey.
    • getFetchKeyBytes

      public com.google.protobuf.ByteString getFetchKeyBytes()
       The "Fetch Key" of the item that will be fetched.
       
      string fetch_key = 2;
      Specified by:
      getFetchKeyBytes in interface FetchAndParseRequestOrBuilder
      Returns:
      The bytes for fetchKey.
    • setFetchKey

      public FetchAndParseRequest.Builder setFetchKey(String value)
       The "Fetch Key" of the item that will be fetched.
       
      string fetch_key = 2;
      Parameters:
      value - The fetchKey to set.
      Returns:
      This builder for chaining.
    • clearFetchKey

      public FetchAndParseRequest.Builder clearFetchKey()
       The "Fetch Key" of the item that will be fetched.
       
      string fetch_key = 2;
      Returns:
      This builder for chaining.
    • setFetchKeyBytes

      public FetchAndParseRequest.Builder setFetchKeyBytes(com.google.protobuf.ByteString value)
       The "Fetch Key" of the item that will be fetched.
       
      string fetch_key = 2;
      Parameters:
      value - The bytes for fetchKey to set.
      Returns:
      This builder for chaining.
    • getAdditionalFetchConfigJson

      public String getAdditionalFetchConfigJson()
       You can supply additional fetch configuration using this. Follows same fetch configuration json schema
       as the fetcher configuration.
       
      string additional_fetch_config_json = 3;
      Specified by:
      getAdditionalFetchConfigJson in interface FetchAndParseRequestOrBuilder
      Returns:
      The additionalFetchConfigJson.
    • getAdditionalFetchConfigJsonBytes

      public com.google.protobuf.ByteString getAdditionalFetchConfigJsonBytes()
       You can supply additional fetch configuration using this. Follows same fetch configuration json schema
       as the fetcher configuration.
       
      string additional_fetch_config_json = 3;
      Specified by:
      getAdditionalFetchConfigJsonBytes in interface FetchAndParseRequestOrBuilder
      Returns:
      The bytes for additionalFetchConfigJson.
    • setAdditionalFetchConfigJson

      public FetchAndParseRequest.Builder setAdditionalFetchConfigJson(String value)
       You can supply additional fetch configuration using this. Follows same fetch configuration json schema
       as the fetcher configuration.
       
      string additional_fetch_config_json = 3;
      Parameters:
      value - The additionalFetchConfigJson to set.
      Returns:
      This builder for chaining.
    • clearAdditionalFetchConfigJson

      public FetchAndParseRequest.Builder clearAdditionalFetchConfigJson()
       You can supply additional fetch configuration using this. Follows same fetch configuration json schema
       as the fetcher configuration.
       
      string additional_fetch_config_json = 3;
      Returns:
      This builder for chaining.
    • setAdditionalFetchConfigJsonBytes

      public FetchAndParseRequest.Builder setAdditionalFetchConfigJsonBytes(com.google.protobuf.ByteString value)
       You can supply additional fetch configuration using this. Follows same fetch configuration json schema
       as the fetcher configuration.
       
      string additional_fetch_config_json = 3;
      Parameters:
      value - The bytes for additionalFetchConfigJson to set.
      Returns:
      This builder for chaining.
    • getEmitterId

      public String getEmitterId()
       The ID of the emitter to use (optional). If not provided, no emitter will be used.
       
      string emitter_id = 4;
      Specified by:
      getEmitterId in interface FetchAndParseRequestOrBuilder
      Returns:
      The emitterId.
    • getEmitterIdBytes

      public com.google.protobuf.ByteString getEmitterIdBytes()
       The ID of the emitter to use (optional). If not provided, no emitter will be used.
       
      string emitter_id = 4;
      Specified by:
      getEmitterIdBytes in interface FetchAndParseRequestOrBuilder
      Returns:
      The bytes for emitterId.
    • setEmitterId

      public FetchAndParseRequest.Builder setEmitterId(String value)
       The ID of the emitter to use (optional). If not provided, no emitter will be used.
       
      string emitter_id = 4;
      Parameters:
      value - The emitterId to set.
      Returns:
      This builder for chaining.
    • clearEmitterId

      public FetchAndParseRequest.Builder clearEmitterId()
       The ID of the emitter to use (optional). If not provided, no emitter will be used.
       
      string emitter_id = 4;
      Returns:
      This builder for chaining.
    • setEmitterIdBytes

      public FetchAndParseRequest.Builder setEmitterIdBytes(com.google.protobuf.ByteString value)
       The ID of the emitter to use (optional). If not provided, no emitter will be used.
       
      string emitter_id = 4;
      Parameters:
      value - The bytes for emitterId to set.
      Returns:
      This builder for chaining.
    • getParseContextJson

      public String getParseContextJson()
       Optional JSON object to configure the ParseContext for this request, overriding server defaults.
       Keys are parse-context component names; values are their JSON configs.
       Example: {"basic-content-handler-factory": {"type": "HTML"}, "timeout-limits": {"progressTimeoutMillis": 30000}}
       See the parse-context.idx component registry for available component names.
       
      string parse_context_json = 5;
      Specified by:
      getParseContextJson in interface FetchAndParseRequestOrBuilder
      Returns:
      The parseContextJson.
    • getParseContextJsonBytes

      public com.google.protobuf.ByteString getParseContextJsonBytes()
       Optional JSON object to configure the ParseContext for this request, overriding server defaults.
       Keys are parse-context component names; values are their JSON configs.
       Example: {"basic-content-handler-factory": {"type": "HTML"}, "timeout-limits": {"progressTimeoutMillis": 30000}}
       See the parse-context.idx component registry for available component names.
       
      string parse_context_json = 5;
      Specified by:
      getParseContextJsonBytes in interface FetchAndParseRequestOrBuilder
      Returns:
      The bytes for parseContextJson.
    • setParseContextJson

      public FetchAndParseRequest.Builder setParseContextJson(String value)
       Optional JSON object to configure the ParseContext for this request, overriding server defaults.
       Keys are parse-context component names; values are their JSON configs.
       Example: {"basic-content-handler-factory": {"type": "HTML"}, "timeout-limits": {"progressTimeoutMillis": 30000}}
       See the parse-context.idx component registry for available component names.
       
      string parse_context_json = 5;
      Parameters:
      value - The parseContextJson to set.
      Returns:
      This builder for chaining.
    • clearParseContextJson

      public FetchAndParseRequest.Builder clearParseContextJson()
       Optional JSON object to configure the ParseContext for this request, overriding server defaults.
       Keys are parse-context component names; values are their JSON configs.
       Example: {"basic-content-handler-factory": {"type": "HTML"}, "timeout-limits": {"progressTimeoutMillis": 30000}}
       See the parse-context.idx component registry for available component names.
       
      string parse_context_json = 5;
      Returns:
      This builder for chaining.
    • setParseContextJsonBytes

      public FetchAndParseRequest.Builder setParseContextJsonBytes(com.google.protobuf.ByteString value)
       Optional JSON object to configure the ParseContext for this request, overriding server defaults.
       Keys are parse-context component names; values are their JSON configs.
       Example: {"basic-content-handler-factory": {"type": "HTML"}, "timeout-limits": {"progressTimeoutMillis": 30000}}
       See the parse-context.idx component registry for available component names.
       
      string parse_context_json = 5;
      Parameters:
      value - The bytes for parseContextJson to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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