class Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentProvenance

Structure to identify provenance relationships between annotations in different revisions.

Attributes

id[RW]

The Id of this operation. Needs to be unique within the scope of the revision. Corresponds to the JSON property `id` @return [Fixnum]

parents[RW]

References to the original elements that are replaced. Corresponds to the JSON property `parents` @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta1DocumentProvenanceParent>]

revision[RW]

The index of the revision that produced this element. Corresponds to the JSON property `revision` @return [Fixnum]

type[RW]

The type of provenance operation. Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/documentai_v1beta3/classes.rb, line 2122
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_v1beta3/classes.rb, line 2127
def update!(**args)
  @id = args[:id] if args.key?(:id)
  @parents = args[:parents] if args.key?(:parents)
  @revision = args[:revision] if args.key?(:revision)
  @type = args[:type] if args.key?(:type)
end