Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/documentai_v1/classes.rb,
lib/google/apis/documentai_v1/representations.rb,
lib/google/apis/documentai_v1/representations.rb

Overview

The status of a each individual document in the batch process.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus

Returns a new instance of GoogleCloudDocumentaiV1BatchProcessMetadataIndividualProcessStatus.



1208
1209
1210
# File 'lib/google/apis/documentai_v1/classes.rb', line 1208

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#human_review_statusGoogle::Apis::DocumentaiV1::GoogleCloudDocumentaiV1HumanReviewStatus

The status of human review on a processed document. Corresponds to the JSON property humanReviewStatus



1182
1183
1184
# File 'lib/google/apis/documentai_v1/classes.rb', line 1182

def human_review_status
  @human_review_status
end

#input_gcs_sourceString

The source of the document, same as the [input_gcs_source] field in the request when the batch process started. The batch process is started by take snapshot of that document, since a user can move or change that document during the process. Corresponds to the JSON property inputGcsSource

Returns:

  • (String)


1190
1191
1192
# File 'lib/google/apis/documentai_v1/classes.rb', line 1190

def input_gcs_source
  @input_gcs_source
end

#output_gcs_destinationString

The output_gcs_destination (in the request as output_gcs_destination) of the processed document if it was successful, otherwise empty. Corresponds to the JSON property outputGcsDestination

Returns:

  • (String)


1196
1197
1198
# File 'lib/google/apis/documentai_v1/classes.rb', line 1196

def output_gcs_destination
  @output_gcs_destination
end

#statusGoogle::Apis::DocumentaiV1::GoogleRpcStatus

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide. Corresponds to the JSON property status



1206
1207
1208
# File 'lib/google/apis/documentai_v1/classes.rb', line 1206

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1213
1214
1215
1216
1217
1218
# File 'lib/google/apis/documentai_v1/classes.rb', line 1213

def update!(**args)
  @human_review_status = args[:human_review_status] if args.key?(:human_review_status)
  @input_gcs_source = args[:input_gcs_source] if args.key?(:input_gcs_source)
  @output_gcs_destination = args[:output_gcs_destination] if args.key?(:output_gcs_destination)
  @status = args[:status] if args.key?(:status)
end