Package org.apache.tika
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 Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()You can supply additional fetch configuration using this.The ID of the emitter to use (optional).The ID of the fetcher in the fetcher store (previously saved by SaveFetcher) to use for the fetch.The "Fetch Key" of the item that will be fetched.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Optional JSON object to configure the ParseContext for this request, overriding server defaults.clone()You can supply additional fetch configuration using this.com.google.protobuf.ByteStringYou can supply additional fetch configuration using this.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe ID of the emitter to use (optional).com.google.protobuf.ByteStringThe ID of the emitter to use (optional).The ID of the fetcher in the fetcher store (previously saved by SaveFetcher) to use for the fetch.com.google.protobuf.ByteStringThe ID of the fetcher in the fetcher store (previously saved by SaveFetcher) to use for the fetch.The "Fetch Key" of the item that will be fetched.com.google.protobuf.ByteStringThe "Fetch Key" of the item that will be fetched.Optional JSON object to configure the ParseContext for this request, overriding server defaults.com.google.protobuf.ByteStringOptional JSON object to configure the ParseContext for this request, overriding server defaults.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(FetchAndParseRequest other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) You can supply additional fetch configuration using this.setAdditionalFetchConfigJsonBytes(com.google.protobuf.ByteString value) You can supply additional fetch configuration using this.setEmitterId(String value) The ID of the emitter to use (optional).setEmitterIdBytes(com.google.protobuf.ByteString value) The ID of the emitter to use (optional).setFetcherId(String value) The ID of the fetcher in the fetcher store (previously saved by SaveFetcher) to use for the fetch.setFetcherIdBytes(com.google.protobuf.ByteString value) The ID of the fetcher in the fetcher store (previously saved by SaveFetcher) to use for the fetch.setFetchKey(String value) The "Fetch Key" of the item that will be fetched.setFetchKeyBytes(com.google.protobuf.ByteString value) The "Fetch Key" of the item that will be fetched.setParseContextJson(String value) Optional JSON object to configure the ParseContext for this request, overriding server defaults.setParseContextJsonBytes(com.google.protobuf.ByteString value) Optional JSON object to configure the ParseContext for this request, overriding server defaults.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<FetchAndParseRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<FetchAndParseRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<FetchAndParseRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<FetchAndParseRequest.Builder>
-
setField
public FetchAndParseRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FetchAndParseRequest.Builder>
-
clearField
public FetchAndParseRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FetchAndParseRequest.Builder>
-
clearOneof
public FetchAndParseRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<FetchAndParseRequest.Builder>
-
setRepeatedField
public FetchAndParseRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FetchAndParseRequest.Builder>
-
addRepeatedField
public FetchAndParseRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FetchAndParseRequest.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FetchAndParseRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FetchAndParseRequest.Builder>- Throws:
IOException
-
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:
getFetcherIdin interfaceFetchAndParseRequestOrBuilder- 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:
getFetcherIdBytesin interfaceFetchAndParseRequestOrBuilder- Returns:
- The bytes for fetcherId.
-
setFetcherId
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
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
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
The "Fetch Key" of the item that will be fetched.
string fetch_key = 2;- Specified by:
getFetchKeyin interfaceFetchAndParseRequestOrBuilder- 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:
getFetchKeyBytesin interfaceFetchAndParseRequestOrBuilder- Returns:
- The bytes for fetchKey.
-
setFetchKey
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
The "Fetch Key" of the item that will be fetched.
string fetch_key = 2;- Returns:
- This builder for chaining.
-
setFetchKeyBytes
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
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:
getAdditionalFetchConfigJsonin interfaceFetchAndParseRequestOrBuilder- 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:
getAdditionalFetchConfigJsonBytesin interfaceFetchAndParseRequestOrBuilder- Returns:
- The bytes for additionalFetchConfigJson.
-
setAdditionalFetchConfigJson
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
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
The ID of the emitter to use (optional). If not provided, no emitter will be used.
string emitter_id = 4;- Specified by:
getEmitterIdin interfaceFetchAndParseRequestOrBuilder- 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:
getEmitterIdBytesin interfaceFetchAndParseRequestOrBuilder- Returns:
- The bytes for emitterId.
-
setEmitterId
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
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
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
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:
getParseContextJsonin interfaceFetchAndParseRequestOrBuilder- 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:
getParseContextJsonBytesin interfaceFetchAndParseRequestOrBuilder- Returns:
- The bytes for parseContextJson.
-
setParseContextJson
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
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
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FetchAndParseRequest.Builder>
-
mergeUnknownFields
public final FetchAndParseRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FetchAndParseRequest.Builder>
-