Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentProvenance

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
more...

Overview

Structure to identify provenance relationships between annotations in different revisions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1DocumentProvenance

Returns a new instance of GoogleCloudDocumentaiV1DocumentProvenance.

[View source]

3266
3267
3268
# File 'lib/google/apis/documentai_v1/classes.rb', line 3266

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

Instance Attribute Details

#idFixnum

The Id of this operation. Needs to be unique within the scope of the revision. Corresponds to the JSON property id

Returns:

  • (Fixnum)

3249
3250
3251
# File 'lib/google/apis/documentai_v1/classes.rb', line 3249

def id
  @id
end

#parentsArray<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentProvenanceParent>

References to the original elements that are replaced. Corresponds to the JSON property parents


3254
3255
3256
# File 'lib/google/apis/documentai_v1/classes.rb', line 3254

def parents
  @parents
end

#revisionFixnum

The index of the revision that produced this element. Corresponds to the JSON property revision

Returns:

  • (Fixnum)

3259
3260
3261
# File 'lib/google/apis/documentai_v1/classes.rb', line 3259

def revision
  @revision
end

#typeString

The type of provenance operation. Corresponds to the JSON property type

Returns:

  • (String)

3264
3265
3266
# File 'lib/google/apis/documentai_v1/classes.rb', line 3264

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

3271
3272
3273
3274
3275
3276
# File 'lib/google/apis/documentai_v1/classes.rb', line 3271

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