class Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentRevision

Contains past or forward revisions of this document.

Attributes

agent[RW]

If the change was made by a person specify the name or id of that person. Corresponds to the JSON property `agent` @return [String]

create_time[RW]

The time that the revision was created. Corresponds to the JSON property `createTime` @return [String]

human_review[RW]

Human Review information of the document. Corresponds to the JSON property `humanReview` @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentRevisionHumanReview]

id[RW]

Id of the revision. Unique within the context of the document. Corresponds to the JSON property `id` @return [String]

parent[RW]

The revisions that this revision is based on. This can include one or more parent (when documents are merged.) This field represents the index into the ` revisions` field. Corresponds to the JSON property `parent` @return [Array<Fixnum>]

processor[RW]

If the annotation was made by processor identify the processor by its resource name. Corresponds to the JSON property `processor` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/documentai_v1/classes.rb, line 2114
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/documentai_v1/classes.rb, line 2119
def update!(**args)
  @agent = args[:agent] if args.key?(:agent)
  @create_time = args[:create_time] if args.key?(:create_time)
  @human_review = args[:human_review] if args.key?(:human_review)
  @id = args[:id] if args.key?(:id)
  @parent = args[:parent] if args.key?(:parent)
  @processor = args[:processor] if args.key?(:processor)
end