Class: Google::Apis::DocumentaiV1beta3::CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldOccurrences
- Inherits:
-
Object
- Object
- Google::Apis::DocumentaiV1beta3::CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldOccurrences
- 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
Instance Attribute Summary collapse
-
#field ⇒ Google::Apis::DocumentaiV1beta3::CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField
Corresponds to the JSON property
field. -
#max_occurrences ⇒ Fixnum
Corresponds to the JSON property
maxOccurrences. -
#min_occurrences ⇒ Fixnum
Min and max occurrences of the field.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldOccurrences
constructor
A new instance of CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldOccurrences.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldOccurrences
Returns a new instance of CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleFieldOccurrences.
261 262 263 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 261 def initialize(**args) update!(**args) end |
Instance Attribute Details
#field ⇒ Google::Apis::DocumentaiV1beta3::CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField
Corresponds to the JSON property field
248 249 250 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 248 def field @field end |
#max_occurrences ⇒ Fixnum
Corresponds to the JSON property maxOccurrences
253 254 255 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 253 def max_occurrences @max_occurrences end |
#min_occurrences ⇒ Fixnum
Min and max occurrences of the field. If not set, there is limit set. The
defined interval is a closed-closed interval, i.e. [min, max].
Corresponds to the JSON property minOccurrences
259 260 261 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 259 def min_occurrences @min_occurrences end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
266 267 268 269 270 |
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 266 def update!(**args) @field = args[:field] if args.key?(:field) @max_occurrences = args[:max_occurrences] if args.key?(:max_occurrences) @min_occurrences = args[:min_occurrences] if args.key?(:min_occurrences) end |