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.



1496
1497
1498
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1496

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>)


1489
1490
1491
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1489

def set_values
  @set_values
end

#unset_valuesArray<String>

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

Returns:

  • (Array<String>)


1494
1495
1496
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1494

def unset_values
  @unset_values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1501
1502
1503
1504
# File 'lib/google/apis/mybusinessbusinessinformation_v1/classes.rb', line 1501

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