def text_repeat_type=(text_repeat_type)
      validator = EnumAttributeValidator.new('String', ["None", "FullTextRepeat", "RepeatWithTruncation"])
      if text_repeat_type.to_i == 0
        unless validator.valid?(text_repeat_type)
          raise ArgumentError, "invalid value for 'text_repeat_type', must be one of #{validator.allowable_values}."
        end
        @text_repeat_type = text_repeat_type
      else
        @text_repeat_type = validator.allowable_values[text_repeat_type.to_i]
      end
    end
def text_repeat_type=(text_repeat_type)
      validator = EnumAttributeValidator.new('String', ["None", "FullTextRepeat", "RepeatWithTruncation"])
      if text_repeat_type.to_i == 0
        unless validator.valid?(text_repeat_type)
          raise ArgumentError, "invalid value for 'text_repeat_type', must be one of #{validator.allowable_values}."
        end
        @text_repeat_type = text_repeat_type
      else
        @text_repeat_type = validator.allowable_values[text_repeat_type.to_i]
      end
    end
Custom attribute writer method checking allowed values (enum).
 @param [Object] text_repeat_type Object to be assigned