Package com.google.cloud.documentai.v1
Class ProcessRequest
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.documentai.v1.ProcessRequest
- All Implemented Interfaces:
ProcessRequestOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class ProcessRequest
extends com.google.protobuf.GeneratedMessage
implements ProcessRequestOrBuilder
Request message for the [ProcessDocument][google.cloud.documentai.v1.DocumentProcessorService.ProcessDocument] method.Protobuf type
google.cloud.documentai.v1.ProcessRequest- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRequest message for the [ProcessDocument][google.cloud.documentai.v1.DocumentProcessorService.ProcessDocument] method.static enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsLabels(String key) Optional.booleanstatic ProcessRequeststatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.FieldMaskSpecifies which fields to include in the [ProcessResponse.document][google.cloud.documentai.v1.ProcessResponse.document] output.com.google.protobuf.FieldMaskOrBuilderSpecifies which fields to include in the [ProcessResponse.document][google.cloud.documentai.v1.ProcessResponse.document] output.A raw document on Google Cloud Storage.A raw document on Google Cloud Storage.booleanOptional.An inline document proto.An inline document proto.Deprecated.intOptional.Optional.getLabelsOrDefault(String key, String defaultValue) Optional.getLabelsOrThrow(String key) Optional.getName()Required.com.google.protobuf.ByteStringRequired.com.google.protobuf.Parser<ProcessRequest>Inference-time options for the process APIInference-time options for the process APIA raw document content (bytes).A raw document content (bytes).intbooleanWhether human review should be skipped for this request.booleanSpecifies which fields to include in the [ProcessResponse.document][google.cloud.documentai.v1.ProcessResponse.document] output.booleanA raw document on Google Cloud Storage.inthashCode()booleanAn inline document proto.booleanInference-time options for the process APIbooleanA raw document content (bytes).protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic ProcessRequest.Builderstatic ProcessRequest.BuildernewBuilder(ProcessRequest prototype) protected ProcessRequest.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static ProcessRequestparseDelimitedFrom(InputStream input) static ProcessRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProcessRequestparseFrom(byte[] data) static ProcessRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProcessRequestparseFrom(com.google.protobuf.ByteString data) static ProcessRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProcessRequestparseFrom(com.google.protobuf.CodedInputStream input) static ProcessRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProcessRequestparseFrom(InputStream input) static ProcessRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ProcessRequestparseFrom(ByteBuffer data) static ProcessRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ProcessRequest>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
INLINE_DOCUMENT_FIELD_NUMBER
public static final int INLINE_DOCUMENT_FIELD_NUMBER- See Also:
-
RAW_DOCUMENT_FIELD_NUMBER
public static final int RAW_DOCUMENT_FIELD_NUMBER- See Also:
-
GCS_DOCUMENT_FIELD_NUMBER
public static final int GCS_DOCUMENT_FIELD_NUMBER- See Also:
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
SKIP_HUMAN_REVIEW_FIELD_NUMBER
public static final int SKIP_HUMAN_REVIEW_FIELD_NUMBER- See Also:
-
FIELD_MASK_FIELD_NUMBER
public static final int FIELD_MASK_FIELD_NUMBER- See Also:
-
PROCESS_OPTIONS_FIELD_NUMBER
public static final int PROCESS_OPTIONS_FIELD_NUMBER- See Also:
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER- See Also:
-
IMAGELESS_MODE_FIELD_NUMBER
public static final int IMAGELESS_MODE_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getSourceCase
- Specified by:
getSourceCasein interfaceProcessRequestOrBuilder
-
hasInlineDocument
public boolean hasInlineDocument()An inline document proto.
.google.cloud.documentai.v1.Document inline_document = 4;- Specified by:
hasInlineDocumentin interfaceProcessRequestOrBuilder- Returns:
- Whether the inlineDocument field is set.
-
getInlineDocument
An inline document proto.
.google.cloud.documentai.v1.Document inline_document = 4;- Specified by:
getInlineDocumentin interfaceProcessRequestOrBuilder- Returns:
- The inlineDocument.
-
getInlineDocumentOrBuilder
An inline document proto.
.google.cloud.documentai.v1.Document inline_document = 4;- Specified by:
getInlineDocumentOrBuilderin interfaceProcessRequestOrBuilder
-
hasRawDocument
public boolean hasRawDocument()A raw document content (bytes).
.google.cloud.documentai.v1.RawDocument raw_document = 5;- Specified by:
hasRawDocumentin interfaceProcessRequestOrBuilder- Returns:
- Whether the rawDocument field is set.
-
getRawDocument
A raw document content (bytes).
.google.cloud.documentai.v1.RawDocument raw_document = 5;- Specified by:
getRawDocumentin interfaceProcessRequestOrBuilder- Returns:
- The rawDocument.
-
getRawDocumentOrBuilder
A raw document content (bytes).
.google.cloud.documentai.v1.RawDocument raw_document = 5;- Specified by:
getRawDocumentOrBuilderin interfaceProcessRequestOrBuilder
-
hasGcsDocument
public boolean hasGcsDocument()A raw document on Google Cloud Storage.
.google.cloud.documentai.v1.GcsDocument gcs_document = 8;- Specified by:
hasGcsDocumentin interfaceProcessRequestOrBuilder- Returns:
- Whether the gcsDocument field is set.
-
getGcsDocument
A raw document on Google Cloud Storage.
.google.cloud.documentai.v1.GcsDocument gcs_document = 8;- Specified by:
getGcsDocumentin interfaceProcessRequestOrBuilder- Returns:
- The gcsDocument.
-
getGcsDocumentOrBuilder
A raw document on Google Cloud Storage.
.google.cloud.documentai.v1.GcsDocument gcs_document = 8;- Specified by:
getGcsDocumentOrBuilderin interfaceProcessRequestOrBuilder
-
getName
Required. The resource name of the [Processor][google.cloud.documentai.v1.Processor] or [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] to use for processing. If a [Processor][google.cloud.documentai.v1.Processor] is specified, the server will use its [default version][google.cloud.documentai.v1.Processor.default_processor_version]. Format: `projects/{project}/locations/{location}/processors/{processor}`, or `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getNamein interfaceProcessRequestOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Required. The resource name of the [Processor][google.cloud.documentai.v1.Processor] or [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] to use for processing. If a [Processor][google.cloud.documentai.v1.Processor] is specified, the server will use its [default version][google.cloud.documentai.v1.Processor.default_processor_version]. Format: `projects/{project}/locations/{location}/processors/{processor}`, or `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getNameBytesin interfaceProcessRequestOrBuilder- Returns:
- The bytes for name.
-
getSkipHumanReview
public boolean getSkipHumanReview()Whether human review should be skipped for this request. Default to `false`.
bool skip_human_review = 3;- Specified by:
getSkipHumanReviewin interfaceProcessRequestOrBuilder- Returns:
- The skipHumanReview.
-
hasFieldMask
public boolean hasFieldMask()Specifies which fields to include in the [ProcessResponse.document][google.cloud.documentai.v1.ProcessResponse.document] output. Only supports top-level document and pages field, so it must be in the form of `{document_field_name}` or `pages.{page_field_name}`..google.protobuf.FieldMask field_mask = 6;- Specified by:
hasFieldMaskin interfaceProcessRequestOrBuilder- Returns:
- Whether the fieldMask field is set.
-
getFieldMask
public com.google.protobuf.FieldMask getFieldMask()Specifies which fields to include in the [ProcessResponse.document][google.cloud.documentai.v1.ProcessResponse.document] output. Only supports top-level document and pages field, so it must be in the form of `{document_field_name}` or `pages.{page_field_name}`..google.protobuf.FieldMask field_mask = 6;- Specified by:
getFieldMaskin interfaceProcessRequestOrBuilder- Returns:
- The fieldMask.
-
getFieldMaskOrBuilder
public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder()Specifies which fields to include in the [ProcessResponse.document][google.cloud.documentai.v1.ProcessResponse.document] output. Only supports top-level document and pages field, so it must be in the form of `{document_field_name}` or `pages.{page_field_name}`..google.protobuf.FieldMask field_mask = 6;- Specified by:
getFieldMaskOrBuilderin interfaceProcessRequestOrBuilder
-
hasProcessOptions
public boolean hasProcessOptions()Inference-time options for the process API
.google.cloud.documentai.v1.ProcessOptions process_options = 7;- Specified by:
hasProcessOptionsin interfaceProcessRequestOrBuilder- Returns:
- Whether the processOptions field is set.
-
getProcessOptions
Inference-time options for the process API
.google.cloud.documentai.v1.ProcessOptions process_options = 7;- Specified by:
getProcessOptionsin interfaceProcessRequestOrBuilder- Returns:
- The processOptions.
-
getProcessOptionsOrBuilder
Inference-time options for the process API
.google.cloud.documentai.v1.ProcessOptions process_options = 7;- Specified by:
getProcessOptionsOrBuilderin interfaceProcessRequestOrBuilder
-
getLabelsCount
public int getLabelsCount()Description copied from interface:ProcessRequestOrBuilderOptional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsCountin interfaceProcessRequestOrBuilder
-
containsLabels
Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsLabelsin interfaceProcessRequestOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceProcessRequestOrBuilder
-
getLabelsMap
Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsMapin interfaceProcessRequestOrBuilder
-
getLabelsOrDefault
Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsOrDefaultin interfaceProcessRequestOrBuilder
-
getLabelsOrThrow
Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
map<string, string> labels = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsOrThrowin interfaceProcessRequestOrBuilder
-
getImagelessMode
public boolean getImagelessMode()Optional. Option to remove images from the document.
bool imageless_mode = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getImagelessModein interfaceProcessRequestOrBuilder- Returns:
- The imagelessMode.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ProcessRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProcessRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProcessRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProcessRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProcessRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProcessRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ProcessRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ProcessRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ProcessRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ProcessRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ProcessRequest.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-