Class: Google::Apis::DocumentaiV1beta3::CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField

Returns a new instance of CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleField.



230
231
232
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 230

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

Instance Attribute Details

#default_valueGoogle::Apis::DocumentaiV1beta3::CloudAiDocumentaiLabHifiaToolsValidationValidatorInputValidationRuleConstant

The constant value used in the validation rules. Corresponds to the JSON property defaultValue



222
223
224
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 222

def default_value
  @default_value
end

#field_nameString

The field name to validate. This can be a simple field name or a nested field one using the ':' (meant as an aggregator) or '*' (meant as foreach) operators. Corresponds to the JSON property fieldName

Returns:

  • (String)


228
229
230
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 228

def field_name
  @field_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



235
236
237
238
# File 'lib/google/apis/documentai_v1beta3/classes.rb', line 235

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