Class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3SummaryOptions

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

Overview

Metadata for document summarization.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDocumentaiUiv1beta3SummaryOptions

Returns a new instance of GoogleCloudDocumentaiUiv1beta3SummaryOptions.



2664
2665
2666
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 2664

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

Instance Attribute Details

#formatString

The format the summary should be in. Corresponds to the JSON property format

Returns:

  • (String)


2657
2658
2659
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 2657

def format
  @format
end

#lengthString

How long the summary should be. Corresponds to the JSON property length

Returns:

  • (String)


2662
2663
2664
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 2662

def length
  @length
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2669
2670
2671
2672
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 2669

def update!(**args)
  @format = args[:format] if args.key?(:format)
  @length = args[:length] if args.key?(:length)
end