Class ProjectsResource.LocationsResource.ProcessorsResource
The "processors" collection of methods.
Inherited Members
Namespace: Google.Apis.Document.v1
Assembly: Google.Apis.Document.v1.dll
Syntax
public class ProjectsResource.LocationsResource.ProcessorsResource
Constructors
ProcessorsResource(IClientService)
Constructs a new resource.
Declaration
public ProcessorsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
HumanReviewConfig
Gets the HumanReviewConfig resource.
Declaration
public virtual ProjectsResource.LocationsResource.ProcessorsResource.HumanReviewConfigResource HumanReviewConfig { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.LocationsResource.ProcessorsResource.HumanReviewConfigResource |
ProcessorVersions
Gets the ProcessorVersions resource.
Declaration
public virtual ProjectsResource.LocationsResource.ProcessorsResource.ProcessorVersionsResource ProcessorVersions { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.LocationsResource.ProcessorsResource.ProcessorVersionsResource |
Methods
BatchProcess(GoogleCloudDocumentaiV1BatchProcessRequest, string)
LRO endpoint to batch process many documents. The output is written to Cloud Storage as JSON in the [Document] format.
Declaration
public virtual ProjectsResource.LocationsResource.ProcessorsResource.BatchProcessRequest BatchProcess(GoogleCloudDocumentaiV1BatchProcessRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudDocumentaiV1BatchProcessRequest | body | The body of the request. |
string | name | Required. The resource name of Processor or ProcessorVersion. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ProcessorsResource.BatchProcessRequest |
Create(GoogleCloudDocumentaiV1Processor, string)
Creates a processor from the ProcessorType provided. The processor will be at ENABLED
state by
default after its creation. Note that this method requires the documentai.processors.create
permission on the project, which is highly privileged. A user or service account with this
permission can create new processors that can interact with any gcs bucket in your project.
Declaration
public virtual ProjectsResource.LocationsResource.ProcessorsResource.CreateRequest Create(GoogleCloudDocumentaiV1Processor body, string parent)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudDocumentaiV1Processor | body | The body of the request. |
string | parent | Required. The parent (project and location) under which to create the processor. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ProcessorsResource.CreateRequest |
Delete(string)
Deletes the processor, unloads all deployed model artifacts if it was enabled and then deletes all artifacts associated with this processor.
Declaration
public virtual ProjectsResource.LocationsResource.ProcessorsResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The processor resource name to be deleted. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ProcessorsResource.DeleteRequest |
Disable(GoogleCloudDocumentaiV1DisableProcessorRequest, string)
Disables a processor
Declaration
public virtual ProjectsResource.LocationsResource.ProcessorsResource.DisableRequest Disable(GoogleCloudDocumentaiV1DisableProcessorRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudDocumentaiV1DisableProcessorRequest | body | The body of the request. |
string | name | Required. The processor resource name to be disabled. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ProcessorsResource.DisableRequest |
Enable(GoogleCloudDocumentaiV1EnableProcessorRequest, string)
Enables a processor
Declaration
public virtual ProjectsResource.LocationsResource.ProcessorsResource.EnableRequest Enable(GoogleCloudDocumentaiV1EnableProcessorRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudDocumentaiV1EnableProcessorRequest | body | The body of the request. |
string | name | Required. The processor resource name to be enabled. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ProcessorsResource.EnableRequest |
Get(string)
Gets a processor detail.
Declaration
public virtual ProjectsResource.LocationsResource.ProcessorsResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The processor resource name. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ProcessorsResource.GetRequest |
List(string)
Lists all processors which belong to this project.
Declaration
public virtual ProjectsResource.LocationsResource.ProcessorsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The parent (project and location) which owns this collection of Processors. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ProcessorsResource.ListRequest |
Process(GoogleCloudDocumentaiV1ProcessRequest, string)
Processes a single document.
Declaration
public virtual ProjectsResource.LocationsResource.ProcessorsResource.ProcessRequest Process(GoogleCloudDocumentaiV1ProcessRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudDocumentaiV1ProcessRequest | body | The body of the request. |
string | name | Required. The resource name of the Processor or ProcessorVersion to use for processing. If a
Processor is specified, the server will use its default version. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ProcessorsResource.ProcessRequest |
SetDefaultProcessorVersion(GoogleCloudDocumentaiV1SetDefaultProcessorVersionRequest, string)
Set the default (active) version of a Processor that will be used in ProcessDocument and BatchProcessDocuments.
Declaration
public virtual ProjectsResource.LocationsResource.ProcessorsResource.SetDefaultProcessorVersionRequest SetDefaultProcessorVersion(GoogleCloudDocumentaiV1SetDefaultProcessorVersionRequest body, string processor)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudDocumentaiV1SetDefaultProcessorVersionRequest | body | The body of the request. |
string | processor | Required. The resource name of the Processor to change default version. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.ProcessorsResource.SetDefaultProcessorVersionRequest |