Class: Google::Apis::MybusinessbusinessinformationV1::RepeatedEnumAttributeValue

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

Overview

Values for an attribute with a value_type of REPEATED_ENUM. This consists of two lists of value IDs: those that are set (true) and those that are unset ( false). Values absent are considered unknown. At least one value must be specified.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RepeatedEnumAttributeValue

Returns a new instance of RepeatedEnumAttributeValue.



1466
1467
1468
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1466

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

Instance Attribute Details

#set_valuesArray<String>

Enum values that are set. Corresponds to the JSON property setValues

Returns:

  • (Array<String>)


1459
1460
1461
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1459

def set_values
  @set_values
end

#unset_valuesArray<String>

Enum values that are unset. Corresponds to the JSON property unsetValues

Returns:

  • (Array<String>)


1464
1465
1466
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1464

def unset_values
  @unset_values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1471
1472
1473
1474
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1471

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