Package org.apache.tika
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 typetika.FetchAndParseReply
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description FetchAndParseReply.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
FetchAndParseReply
build()
FetchAndParseReply
buildPartial()
FetchAndParseReply.Builder
clear()
FetchAndParseReply.Builder
clearErrorMessage()
If there was an error, this will contain the error message.FetchAndParseReply.Builder
clearFetchKey()
Echoes the fetch_key that was sent in the request.FetchAndParseReply.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
FetchAndParseReply.Builder
clearFields()
FetchAndParseReply.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
FetchAndParseReply.Builder
clearStatus()
The status from the message.FetchAndParseReply.Builder
clone()
boolean
containsFields(String key)
Metadata fields from the parse output.FetchAndParseReply
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getErrorMessage()
If there was an error, this will contain the error message.com.google.protobuf.ByteString
getErrorMessageBytes()
If there was an error, this will contain the error message.String
getFetchKey()
Echoes the fetch_key that was sent in the request.com.google.protobuf.ByteString
getFetchKeyBytes()
Echoes the fetch_key that was sent in the request.Map<String,String>
getFields()
Deprecated.int
getFieldsCount()
Metadata fields from the parse output.Map<String,String>
getFieldsMap()
Metadata fields from the parse output.String
getFieldsOrDefault(String key, String defaultValue)
Metadata fields from the parse output.String
getFieldsOrThrow(String key)
Metadata fields from the parse output.Map<String,String>
getMutableFields()
Deprecated.String
getStatus()
The status from the message.com.google.protobuf.ByteString
getStatusBytes()
The status from the message.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapFieldReflectionAccessor
internalGetMapFieldReflection(int number)
protected com.google.protobuf.MapFieldReflectionAccessor
internalGetMutableMapFieldReflection(int number)
boolean
isInitialized()
FetchAndParseReply.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
FetchAndParseReply.Builder
mergeFrom(com.google.protobuf.Message other)
FetchAndParseReply.Builder
mergeFrom(FetchAndParseReply other)
FetchAndParseReply.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
FetchAndParseReply.Builder
putAllFields(Map<String,String> values)
Metadata fields from the parse output.FetchAndParseReply.Builder
putFields(String key, String value)
Metadata fields from the parse output.FetchAndParseReply.Builder
removeFields(String key)
Metadata fields from the parse output.FetchAndParseReply.Builder
setErrorMessage(String value)
If there was an error, this will contain the error message.FetchAndParseReply.Builder
setErrorMessageBytes(com.google.protobuf.ByteString value)
If there was an error, this will contain the error message.FetchAndParseReply.Builder
setFetchKey(String value)
Echoes the fetch_key that was sent in the request.FetchAndParseReply.Builder
setFetchKeyBytes(com.google.protobuf.ByteString value)
Echoes the fetch_key that was sent in the request.FetchAndParseReply.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
FetchAndParseReply.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
FetchAndParseReply.Builder
setStatus(String value)
The status from the message.FetchAndParseReply.Builder
setStatusBytes(com.google.protobuf.ByteString value)
The status from the message.FetchAndParseReply.Builder
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, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
- Overrides:
internalGetMapFieldReflection
in classcom.google.protobuf.GeneratedMessageV3.Builder<FetchAndParseReply.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
- Overrides:
internalGetMutableMapFieldReflection
in classcom.google.protobuf.GeneratedMessageV3.Builder<FetchAndParseReply.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<FetchAndParseReply.Builder>
-
clear
public FetchAndParseReply.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<FetchAndParseReply.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<FetchAndParseReply.Builder>
-
getDefaultInstanceForType
public FetchAndParseReply getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public FetchAndParseReply build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public FetchAndParseReply buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public FetchAndParseReply.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<FetchAndParseReply.Builder>
-
setField
public FetchAndParseReply.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FetchAndParseReply.Builder>
-
clearField
public FetchAndParseReply.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FetchAndParseReply.Builder>
-
clearOneof
public FetchAndParseReply.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FetchAndParseReply.Builder>
-
addRepeatedField
public FetchAndParseReply.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<FetchAndParseReply.Builder>
-
mergeFrom
public FetchAndParseReply.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<FetchAndParseReply.Builder>
-
mergeFrom
public FetchAndParseReply.Builder mergeFrom(FetchAndParseReply other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 interfaceFetchAndParseReplyOrBuilder
- 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 interfaceFetchAndParseReplyOrBuilder
- 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 interfaceFetchAndParseReplyOrBuilder
-
containsFields
public boolean containsFields(String key)
Metadata fields from the parse output.
map<string, string> fields = 2;
- Specified by:
containsFields
in interfaceFetchAndParseReplyOrBuilder
-
getFields
@Deprecated public Map<String,String> getFields()
Deprecated.UsegetFieldsMap()
instead.- Specified by:
getFields
in interfaceFetchAndParseReplyOrBuilder
-
getFieldsMap
public Map<String,String> getFieldsMap()
Metadata fields from the parse output.
map<string, string> fields = 2;
- Specified by:
getFieldsMap
in interfaceFetchAndParseReplyOrBuilder
-
getFieldsOrDefault
public String getFieldsOrDefault(String key, String defaultValue)
Metadata fields from the parse output.
map<string, string> fields = 2;
- Specified by:
getFieldsOrDefault
in interfaceFetchAndParseReplyOrBuilder
-
getFieldsOrThrow
public String getFieldsOrThrow(String key)
Metadata fields from the parse output.
map<string, string> fields = 2;
- Specified by:
getFieldsOrThrow
in interfaceFetchAndParseReplyOrBuilder
-
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 interfaceFetchAndParseReplyOrBuilder
- 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 interfaceFetchAndParseReplyOrBuilder
- 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 interfaceFetchAndParseReplyOrBuilder
- 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 interfaceFetchAndParseReplyOrBuilder
- 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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<FetchAndParseReply.Builder>
-
mergeUnknownFields
public final FetchAndParseReply.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<FetchAndParseReply.Builder>
-
-