Class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentRevision

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

Contains past or forward revisions of this document.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiV1DocumentRevision

Returns a new instance of GoogleCloudDocumentaiV1DocumentRevision.



2929
2930
2931
# File 'lib/google/apis/documentai_v1/classes.rb', line 2929

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

Instance Attribute Details

#agentString

If the change was made by a person specify the name or id of that person. Corresponds to the JSON property agent

Returns:

  • (String)


2892
2893
2894
# File 'lib/google/apis/documentai_v1/classes.rb', line 2892

def agent
  @agent
end

#create_timeString

The time that the revision was created. Corresponds to the JSON property createTime

Returns:

  • (String)


2897
2898
2899
# File 'lib/google/apis/documentai_v1/classes.rb', line 2897

def create_time
  @create_time
end

#human_reviewGoogle::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentRevisionHumanReview

Human Review information of the document. Corresponds to the JSON property humanReview



2902
2903
2904
# File 'lib/google/apis/documentai_v1/classes.rb', line 2902

def human_review
  @human_review
end

#idString

Id of the revision. Unique within the context of the document. Corresponds to the JSON property id

Returns:

  • (String)


2907
2908
2909
# File 'lib/google/apis/documentai_v1/classes.rb', line 2907

def id
  @id
end

#parentArray<Fixnum>

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

Returns:

  • (Array<Fixnum>)


2914
2915
2916
# File 'lib/google/apis/documentai_v1/classes.rb', line 2914

def parent
  @parent
end

#parent_idsArray<String>

The revisions that this revision is based on. Must include all the ids that have anything to do with this revision - eg. there are provenance.parent. revision fields that index into this field. Corresponds to the JSON property parentIds

Returns:

  • (Array<String>)


2921
2922
2923
# File 'lib/google/apis/documentai_v1/classes.rb', line 2921

def parent_ids
  @parent_ids
end

#processorString

If the annotation was made by processor identify the processor by its resource name. Corresponds to the JSON property processor

Returns:

  • (String)


2927
2928
2929
# File 'lib/google/apis/documentai_v1/classes.rb', line 2927

def processor
  @processor
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2934
2935
2936
2937
2938
2939
2940
2941
2942
# File 'lib/google/apis/documentai_v1/classes.rb', line 2934

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)
  @parent_ids = args[:parent_ids] if args.key?(:parent_ids)
  @processor = args[:processor] if args.key?(:processor)
end