Class ProcessRequest
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.documentai.v1beta3.ProcessRequest
-
- All Implemented Interfaces:
ProcessRequestOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class ProcessRequest extends com.google.protobuf.GeneratedMessageV3 implements ProcessRequestOrBuilder
Request message for the [ProcessDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocument] method.
Protobuf typegoogle.cloud.documentai.v1beta3.ProcessRequest- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProcessRequest.BuilderRequest message for the [ProcessDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocument] method.static classProcessRequest.SourceCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intDOCUMENT_FIELD_NUMBERstatic intFIELD_MASK_FIELD_NUMBERstatic intGCS_DOCUMENT_FIELD_NUMBERstatic intINLINE_DOCUMENT_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intPROCESS_OPTIONS_FIELD_NUMBERstatic intRAW_DOCUMENT_FIELD_NUMBERstatic intSKIP_HUMAN_REVIEW_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object obj)static ProcessRequestgetDefaultInstance()ProcessRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()DocumentgetDocument()Deprecated.google.cloud.documentai.v1beta3.ProcessRequest.document is deprecated.DocumentOrBuildergetDocumentOrBuilder()Deprecated.com.google.protobuf.FieldMaskgetFieldMask()Specifies which fields to include in the [ProcessResponse.document][google.cloud.documentai.v1beta3.ProcessResponse.document] output.com.google.protobuf.FieldMaskOrBuildergetFieldMaskOrBuilder()Specifies which fields to include in the [ProcessResponse.document][google.cloud.documentai.v1beta3.ProcessResponse.document] output.GcsDocumentgetGcsDocument()A raw document on Google Cloud Storage.GcsDocumentOrBuildergetGcsDocumentOrBuilder()A raw document on Google Cloud Storage.DocumentgetInlineDocument()An inline document proto.DocumentOrBuildergetInlineDocumentOrBuilder()An inline document proto.StringgetName()Required.com.google.protobuf.ByteStringgetNameBytes()Required.com.google.protobuf.Parser<ProcessRequest>getParserForType()ProcessOptionsgetProcessOptions()Inference-time options for the process APIProcessOptionsOrBuildergetProcessOptionsOrBuilder()Inference-time options for the process APIRawDocumentgetRawDocument()A raw document content (bytes).RawDocumentOrBuildergetRawDocumentOrBuilder()A raw document content (bytes).intgetSerializedSize()booleangetSkipHumanReview()Whether human review should be skipped for this request.ProcessRequest.SourceCasegetSourceCase()booleanhasDocument()Deprecated.google.cloud.documentai.v1beta3.ProcessRequest.document is deprecated.booleanhasFieldMask()Specifies which fields to include in the [ProcessResponse.document][google.cloud.documentai.v1beta3.ProcessResponse.document] output.booleanhasGcsDocument()A raw document on Google Cloud Storage.inthashCode()booleanhasInlineDocument()An inline document proto.booleanhasProcessOptions()Inference-time options for the process APIbooleanhasRawDocument()A raw document content (bytes).protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static ProcessRequest.BuildernewBuilder()static ProcessRequest.BuildernewBuilder(ProcessRequest prototype)ProcessRequest.BuildernewBuilderForType()protected ProcessRequest.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)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()ProcessRequest.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
INLINE_DOCUMENT_FIELD_NUMBER
public static final int INLINE_DOCUMENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RAW_DOCUMENT_FIELD_NUMBER
public static final int RAW_DOCUMENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GCS_DOCUMENT_FIELD_NUMBER
public static final int GCS_DOCUMENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DOCUMENT_FIELD_NUMBER
public static final int DOCUMENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SKIP_HUMAN_REVIEW_FIELD_NUMBER
public static final int SKIP_HUMAN_REVIEW_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FIELD_MASK_FIELD_NUMBER
public static final int FIELD_MASK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROCESS_OPTIONS_FIELD_NUMBER
public static final int PROCESS_OPTIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
getSourceCase
public ProcessRequest.SourceCase getSourceCase()
- Specified by:
getSourceCasein interfaceProcessRequestOrBuilder
-
hasInlineDocument
public boolean hasInlineDocument()
An inline document proto.
.google.cloud.documentai.v1beta3.Document inline_document = 4;- Specified by:
hasInlineDocumentin interfaceProcessRequestOrBuilder- Returns:
- Whether the inlineDocument field is set.
-
getInlineDocument
public Document getInlineDocument()
An inline document proto.
.google.cloud.documentai.v1beta3.Document inline_document = 4;- Specified by:
getInlineDocumentin interfaceProcessRequestOrBuilder- Returns:
- The inlineDocument.
-
getInlineDocumentOrBuilder
public DocumentOrBuilder getInlineDocumentOrBuilder()
An inline document proto.
.google.cloud.documentai.v1beta3.Document inline_document = 4;- Specified by:
getInlineDocumentOrBuilderin interfaceProcessRequestOrBuilder
-
hasRawDocument
public boolean hasRawDocument()
A raw document content (bytes).
.google.cloud.documentai.v1beta3.RawDocument raw_document = 5;- Specified by:
hasRawDocumentin interfaceProcessRequestOrBuilder- Returns:
- Whether the rawDocument field is set.
-
getRawDocument
public RawDocument getRawDocument()
A raw document content (bytes).
.google.cloud.documentai.v1beta3.RawDocument raw_document = 5;- Specified by:
getRawDocumentin interfaceProcessRequestOrBuilder- Returns:
- The rawDocument.
-
getRawDocumentOrBuilder
public RawDocumentOrBuilder getRawDocumentOrBuilder()
A raw document content (bytes).
.google.cloud.documentai.v1beta3.RawDocument raw_document = 5;- Specified by:
getRawDocumentOrBuilderin interfaceProcessRequestOrBuilder
-
hasGcsDocument
public boolean hasGcsDocument()
A raw document on Google Cloud Storage.
.google.cloud.documentai.v1beta3.GcsDocument gcs_document = 8;- Specified by:
hasGcsDocumentin interfaceProcessRequestOrBuilder- Returns:
- Whether the gcsDocument field is set.
-
getGcsDocument
public GcsDocument getGcsDocument()
A raw document on Google Cloud Storage.
.google.cloud.documentai.v1beta3.GcsDocument gcs_document = 8;- Specified by:
getGcsDocumentin interfaceProcessRequestOrBuilder- Returns:
- The gcsDocument.
-
getGcsDocumentOrBuilder
public GcsDocumentOrBuilder getGcsDocumentOrBuilder()
A raw document on Google Cloud Storage.
.google.cloud.documentai.v1beta3.GcsDocument gcs_document = 8;- Specified by:
getGcsDocumentOrBuilderin interfaceProcessRequestOrBuilder
-
getName
public String getName()
Required. The resource name of the [Processor][google.cloud.documentai.v1beta3.Processor] or [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion] to use for processing. If a [Processor][google.cloud.documentai.v1beta3.Processor] is specified, the server will use its [default version][google.cloud.documentai.v1beta3.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.v1beta3.Processor] or [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion] to use for processing. If a [Processor][google.cloud.documentai.v1beta3.Processor] is specified, the server will use its [default version][google.cloud.documentai.v1beta3.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.
-
hasDocument
@Deprecated public boolean hasDocument()
Deprecated.google.cloud.documentai.v1beta3.ProcessRequest.document is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=384The document payload, the [content][google.cloud.documentai.v1beta3.Document.content] and [mime_type][google.cloud.documentai.v1beta3.Document.mime_type] fields must be set.
.google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];- Specified by:
hasDocumentin interfaceProcessRequestOrBuilder- Returns:
- Whether the document field is set.
-
getDocument
@Deprecated public Document getDocument()
Deprecated.google.cloud.documentai.v1beta3.ProcessRequest.document is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=384The document payload, the [content][google.cloud.documentai.v1beta3.Document.content] and [mime_type][google.cloud.documentai.v1beta3.Document.mime_type] fields must be set.
.google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];- Specified by:
getDocumentin interfaceProcessRequestOrBuilder- Returns:
- The document.
-
getDocumentOrBuilder
@Deprecated public DocumentOrBuilder getDocumentOrBuilder()
Deprecated.The document payload, the [content][google.cloud.documentai.v1beta3.Document.content] and [mime_type][google.cloud.documentai.v1beta3.Document.mime_type] fields must be set.
.google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];- Specified by:
getDocumentOrBuilderin interfaceProcessRequestOrBuilder
-
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.v1beta3.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.v1beta3.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.v1beta3.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.v1beta3.ProcessOptions process_options = 7;- Specified by:
hasProcessOptionsin interfaceProcessRequestOrBuilder- Returns:
- Whether the processOptions field is set.
-
getProcessOptions
public ProcessOptions getProcessOptions()
Inference-time options for the process API
.google.cloud.documentai.v1beta3.ProcessOptions process_options = 7;- Specified by:
getProcessOptionsin interfaceProcessRequestOrBuilder- Returns:
- The processOptions.
-
getProcessOptionsOrBuilder
public ProcessOptionsOrBuilder getProcessOptionsOrBuilder()
Inference-time options for the process API
.google.cloud.documentai.v1beta3.ProcessOptions process_options = 7;- Specified by:
getProcessOptionsOrBuilderin interfaceProcessRequestOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- 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
public static ProcessRequest parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ProcessRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ProcessRequest parseDelimitedFrom(InputStream input) throws IOException
- 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
public ProcessRequest.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ProcessRequest.Builder newBuilder()
-
newBuilder
public static ProcessRequest.Builder newBuilder(ProcessRequest prototype)
-
toBuilder
public ProcessRequest.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ProcessRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ProcessRequest getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ProcessRequest> parser()
-
getParserForType
public com.google.protobuf.Parser<ProcessRequest> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ProcessRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-