Class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1ReviewDocumentResponse

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

Overview

Response message for review document method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1ReviewDocumentResponse

Returns a new instance of GoogleCloudDocumentaiV1ReviewDocumentResponse.



1532
1533
1534
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 1532

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

Instance Attribute Details

#gcs_destinationString

The Cloud Storage uri for the human reviewed document if the review is succeeded. Corresponds to the JSON property gcsDestination

Returns:

  • (String)


1520
1521
1522
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 1520

def gcs_destination
  @gcs_destination
end

#rejection_reasonString

The reason why the review is rejected by reviewer. Corresponds to the JSON property rejectionReason

Returns:

  • (String)


1525
1526
1527
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 1525

def rejection_reason
  @rejection_reason
end

#stateString

The state of the review operation. Corresponds to the JSON property state

Returns:

  • (String)


1530
1531
1532
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 1530

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1537
1538
1539
1540
1541
# File 'lib/google/apis/documentai_v1beta2/classes.rb', line 1537

def update!(**args)
  @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
  @rejection_reason = args[:rejection_reason] if args.key?(:rejection_reason)
  @state = args[:state] if args.key?(:state)
end